<script setup>
import Home from "@/views/Home";
import User from "@/views/user/User.vue";


</script>

<template>
  <div class="main container">
    <!--    <button @click="changePage(Home)">切换到首页</button>-->
    <!--    <button @click="changePage(User)">切换到用户页</button>-->
    <!--    <component :is="selectPage"></component>-->
    <router-link to="/">首页</router-link>
    <router-link to="/user">用户页</router-link>
    <hr/>
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  name: "Main"
}
</script>
<style scoped>

</style>